<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>\
    <!-- CSS 文件 ，不要删，不够自己添加 -->
    <link rel="stylesheet" href="../assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-table.min.css">
    <link rel="stylesheet" href="../assets/css/azzara.min.css">
    <link rel="stylesheet" href="../assets/css/demo.css">
</head>
<body>


<!--这里选择的是80%的容器，如果需要100%的话，自己修改一下-->
<div class="container">
    <!--内容在这里面添加就好了-->

    <div class="container">
        <form class="container-fluid">
            <input type="text" id="rname" placeholder="请输入员工姓名" style="width: 20%;height: 40px"/>
            <button type="button" class="btn btn-primary" id="role-find">查询</button>
        </form>
    </div>
    <br>
    <div class="container-fluid">
        <div style="float: right;margin-bottom: 5px;">
            <button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addmo">添加员工</button>
        </div>
        <table id="UserRole"></table>
    </div>

</div>

<!-- 模态框（Modal） -->
<div class="modal fade" id="addmo" >
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">添加员工</h4>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
            </div>
            <div class="modal-body">
                <form class="container-fluid" id="roles">
                    <input type="text" hidden="hidden" name="userId" value="0"/>
                    账号：<input type="text" class="form-control" id="zh" name="userAccount" onblur="yz()"/>
                    <span id="tt" style="color: red"></span>
                    <br>
                    密码:<input type="password" class="form-control" id="pwd"><br>
                    确认密码:<input type="password" class="form-control" id="pass" name="userPassword" onblur="yanzheng()">
                    <span id="txt" style="color: red"></span>
                    <br>
                    员工姓名：<input type="text" class="form-control" name="userName"/><br>
                    职位:<select name="userImg" class="form-control"></select><br>
                    部门:<select name="deptId" class="form-control">
                    <option value="0">---请选择---</option>
                    <option value="1">产品部</option>
                    <option value="2">生产部</option>
                    <option value="3">仓管部</option>
                </select>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" id="cao" data-dismiss="modal" onclick="insert_role()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--js用到的包，不够在自己添加-->
<script src="../js/jquery.3.2.1.min.js"></script>
<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/common.js"></script>
<script src="js/zzyggl.js"></script>

</body>
</html>